﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="AddEditNews.ascx.cs" Inherits="admin_News_AddEditNews" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Assembly="GroupDropDownList" Namespace="GroupDropDownList" TagPrefix="cc1" %>
<asp:HiddenField runat="server" ID="hidNewsId" />
<asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="CustomValidator"
    Display="None"></asp:CustomValidator>
<asp:ValidationSummary ID="ValidationSummary1" runat="server" CssClass="error" />
<table width="100%">
    <tr>
        <td width="120px" class="req">
            Chọn loại bài viết
        </td>
        <td>
            <%--<asp:DropDownList ID="ddlVCategory" runat="server" Width="299px" AppendDataBoundItems="true" >
                        <asp:ListItem Value="00000000-0000-0000-0000-000000000000">-- Chọn --</asp:ListItem>
                    </asp:DropDownList>--%>
            <cc1:GroupDropDownList ID="ddlVCategory" runat="server" Width="299px" AppendDataBoundItems="true">
                <asp:ListItem Value="00000000-0000-0000-0000-000000000000">-- Chọn --</asp:ListItem>
            </cc1:GroupDropDownList>
        </td>
    </tr>
    <tr>
        <td width="120px" class="req">
            Tựa bài
        </td>
        <td>
            <asp:TextBox ID="txtTitle" runat="server" Width="296px"></asp:TextBox>
            <%--   <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Nhập tên tin tức"
                        ControlToValidate="txtTitle" Display="Dynamic">*</asp:RequiredFieldValidator>--%>
        </td>
    </tr>
    <tr valign="top">
        <td>
            Hình ảnh
        </td>
        <td>
            <ul class="upload">
                <li>
                    <asp:FileUpload ID="filePhoto" runat="server" /></li>
                <li>
                    <asp:Image ID="imgPhoto" runat="server" Height="80px" Width="80px" Visible="false" /></li>
            </ul>
        </td>
    </tr>
    <tr valign="top">
        <td>
            TT Chính
        </td>
        <td>
            <asp:TextBox ID="txtInfor" runat="server" TextMode="MultiLine" Width="100%" Height="90px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
            Nội dung
        </td>
        <td>
            <FCKeditorV2:FCKeditor ID="txtContent" runat="server" ToolbarSet="SimpleBar" Width="100%"
                Height="400px" BasePath="~/fckeditor/">
            </FCKeditorV2:FCKeditor>
        </td>
    </tr>
    <tr>
        <td>
        </td>
        <td>
            <asp:Button ID="btnAddNews" runat="server" Text="Đăng" OnClick="btnAddNews_Click" />
            <asp:Button ID="btnHuy" runat="server" Text="Hủy" OnClick="btnHuy_Click" />
        </td>
    </tr>
</table>
